# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-kaitaistruct
pkgver=0.10
pkgrel=3
pkgdesc="Kaitai Struct API for Python"
url="https://kaitai.io/"
license="MIT"
arch="noarch"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/kaitai-io/kaitai_struct_python_runtime/archive/$pkgver/py3-kaitaistruct-$pkgver.tar.gz"
builddir="$srcdir/kaitai_struct_python_runtime-$pkgver"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/kaitaistruct-$pkgver-py2.py3-none-any.whl
}

sha512sums="
ce22445afe7f6713cccc1ffb0714892dcff171d84b89a0cd49441dd36a464f6c764aa89d75f556d06eee82ab4432af27a0ef4313e47272a5f55fee2dba1252f0  py3-kaitaistruct-0.10.tar.gz
"
